#!/bin/bash

# 源目录和目标目录
SOURCE_DIR="./host"
TARGET_DIR="/mnt/d/product/serial_disk/host"

# 复制所有 .py 文件
echo "Copying Python files from $SOURCE_DIR to $TARGET_DIR"
cp "$SOURCE_DIR"/*.py "$TARGET_DIR"
cp "$SOURCE_DIR"/*.md "$TARGET_DIR"


# 检查复制是否成功
if [ $? -eq 0 ]; then
    echo "Files copied successfully"
    # 列出复制的文件
    echo "Copied files:"
    ls -l "$TARGET_DIR"/*.py
else
    echo "Error copying files"
fi 